﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OMenuAdd.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.SysBasic.OMenuAdd" %>
<h2 class="contentTitle">新增页面菜单</h2>
<div class="pageContent">
	<form id="Form1"  runat="server" action="sysbasic/OMenuAdd.aspx?ajaxmethod=addmenu" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
    <div class="pageFormContent" layoutH="100">            
			<p>
				<label>菜单名称：</label>
                <asp:textbox runat="server" id="MenuName" cssclass="required" alt="请输入菜单名称" size="30"></asp:textbox>
			</p>
            <p>
				<label>上级菜单：</label>
                 <select name="ParMenuId" >
                    <%=GetParMenuId()%>
                 </select>
			</p>
            <div class="divider" style=" font-weight:bold"></div>
          
            <p>
				<label>页面路径：</label>
                <asp:textbox runat="server" id="DWZHref" cssclass="required" alt="请输入页面路径"  size="30"></asp:textbox>
			</p> 
              <div class="divider"></div>
            <p>
				<label>页面ID：</label>
                <asp:textbox runat="server" id="DWZRel" cssclass="required" alt="请输入页面ID"></asp:textbox>
			</p>
            <p>
				<label>是否刷新：</label>
                <input type="checkbox" name="DWZFlesh" value="true" />
			</p>
             <div class="divider"></div>
            <p>
				<label>打开目标：</label>
                  <asp:DropDownList ID="DWZTarget" runat="server" cssclass="combox">
                    <asp:ListItem Text="navTab" Value="navTab"></asp:ListItem>
                     <asp:ListItem Text="dialog" Value="dialog"></asp:ListItem>
                     <asp:ListItem Text="iframe navTab页面" Value="external"></asp:ListItem>
                   </asp:DropDownList>
                (一般为navTab.也可为dialog)
			</p>
             <p>
				<label>排序值：</label>
                <asp:textbox runat="server" id="DispayIndex"  class="digits" alt="请输入数字"></asp:textbox>                
			</p>
              
            <div class="divider"></div>
             <p>
				<label>经销商终端：</label>
                <input type="checkbox" name="IsAgent" value="true" />
			</p>
        <div class="divider"></div>
            <dl class="nowrap">
				<dt>页面功能权限信息：</dt>
				<dd>                    
                    <table cellpadding="0" cellspacing="0" border="0" style="width:100%; line-height:25px; height:25px;">
                        <tr>
                            <td>
                                增加权限标记：
                            </td>
                            <td>                               
                                <input type="text" id="OMenuAdd_PermissionTag" />&nbsp;
                            </td>
                            <td>
                                <input type="button" id="OMenuAdd_BtnAddTag" value="添加" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" id="OMenuAdd_TagContent">
                                <label><input type="checkbox" name="PermissionTag"  value="查看" checked />查看</label>
                                <label><input type="checkbox" name="PermissionTag"  value="新增" checked />新增</label>
                                <label><input type="checkbox" name="PermissionTag"  value="删除" checked />删除</label>
                                <label><input type="checkbox" name="PermissionTag"  value="修改" checked />修改</label>
                                <label><input type="checkbox" name="PermissionTag"  value="导出" checked />导出</label>
                            </td>
                        </tr>
                    </table>
                </dd>
			</dl>
    </div>
    <div class="formBar">
   
			<ul>
				<li><div class="buttonActive"><div class="buttonContent">                 
                    <button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
       
	</form>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#OMenuAdd_BtnAddTag").click(function () {
            var $OMenuAdd_PermissionTag = $("#OMenuAdd_PermissionTag").val();
            var $OMenuAdd_TagContent = $("#OMenuAdd_TagContent");
            var peritemtemp = "<label><input type=\"checkbox\" name=\"PermissionTag\"  value=\"" + $OMenuAdd_PermissionTag + "\" checked />" + $OMenuAdd_PermissionTag + "</label>";
            $OMenuAdd_TagContent.append(peritemtemp);
        })
    })
</script>